// import { ResPage, User } from "@/api/interface/index";
import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";

//科室维护查询
export const GetKeShiSel = params => {
  return http.get<any>("/api/KeShiWeiHu/" + PORT1 + "/GetKeShiSel", params);
};

//科室维护重大疾病模板查询
export const GetKeShiZhongDaJiBingSel = params => {
  return http.get<any>("/api/KeShiWeiHu/" + PORT1 + "/GetKeShiZhongDaJiBingSel", params);
};

// 科室维护添加
export const PostKeShiAdd = params => {
  return http.post<any>("/api/KeShiWeiHu/" + PORT1 + "/PostKeShiAdd", params);
};

// 科室维护删除
export const PostKeShiDel = params => {
  return http.delete("/api/KeShiWeiHu/" + PORT1 + "/DeleteKeShiDel" + "?strKeShiID=" + params);
};

// 科室维护修改
export const PostKeShiUpdate = params => {
  return http.put<any>("/api/KeShiWeiHu/" + PORT1 + "/PutKeShiUpdate", params);
};

// 科室维护重大疾病模板添加
export const PostKeShiZhongDaJiBingAdd = params => {
  return http.post<any>("/api/KeShiWeiHu/" + PORT1 + "/PostKeShiZhongDaJiBingAdd", params);
};

// 科室维护重大疾病模板删除
export const PostKeShiZhongDaJiBingDel = params => {
  return http.delete("/api/KeShiWeiHu/" + PORT1 + "/DeleteKeShiZhongDaJiBingDel", params);
};

// 院区查询
// 科室维护重大疾病模板删除
export const GetYuanQuSel = () => {
  return http.get<any>("/api/YuanQuWeiHu/" + PORT1 + "/GetYuanQuSel");
};

// 科室循序
export const PostTiaoZhengShunXu = (iQianShunXu, iHouShunXu, strKeShiId) => {
  return http.put<any>(
    "/api/KeShiWeiHu/" +
      PORT1 +
      "/PutTiaoZhengShunXu" +
      "?iQianShunXu=" +
      iQianShunXu +
      "&iHouShunXu=" +
      iHouShunXu +
      "&strKeShiId=" +
      strKeShiId
  );
};
